﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace laba2.Entity
{
   public class Task:Entity
    {
        protected int _passingRating;
        protected int _maximumRating;
        protected string _name;
        public int CourseId { get; set; }
        protected Course _course;

       protected Task(int id, int passingRating, int maximumRating, string name, Course course) : base(id)
       {
           _passingRating = passingRating;
           _maximumRating = maximumRating;
           _name = name;
           _course = course;
       }

       public Task(int passingRating, int maximumRating, string name, Course course)
       {
           _passingRating = passingRating;
           _maximumRating = maximumRating;
           _name = name;
           _course = course;
       }

       public Task(int passingRating, string name, int maximumRating,int courseId)
       {
           _passingRating = passingRating;
           _name = name;
           _maximumRating = maximumRating;
           CourseId = courseId;
       }

       public Task()
       {
       }

       public int PassingRating
       {
           get { return _passingRating; }
           set { _passingRating = value; }
       }

       public int MaximumRating
       {
           get { return _maximumRating; }
           set { _maximumRating = value; }
       }

       public string Name
       {
           get { return _name; }
           set { _name = value; }
       }

       public Course Course
       {
           get { return _course; }
           set { _course = value; }
       }
    }
}
